math/rand.Zipf.q (field)
6 uses
math/rand (current package)
zipf.go#L19: q float64
zipf.go#L47: z.q = s
zipf.go#L48: z.oneminusQ = 1.0 - z.q
zipf.go#L51: z.hx0minusHxm = z.h(0.5) - math.Exp(math.Log(z.v)*(-z.q)) - z.hxm
zipf.go#L52: z.s = 1 - z.hinv(z.h(1.5)-math.Exp(-z.q*math.Log(z.v+1.0)))
zipf.go#L72: if ur >= z.h(k+0.5)-math.Exp(-math.Log(k+z.v)*z.q) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |